@import "../_base/_function";
.ui-radio {
  .input-radio {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 30px;
    line-height: 30px;
    margin-right: 5px;
    vertical-align: middle;
    text-align: center;
    font-size: 14px;
    .new-input {
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      position: absolute;
      z-index: 0;
      background: url(./assets/images/spr-l-0626.png) -124px -129px no-repeat;
    }
    .icon-danxuan {
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      position: absolute;
      z-index: 0;
    }
    input {
      position: relative;
      z-index: 1;
      opacity: 0;
      filter: alpha(opacity=0);
      &:checked {
        & + .new-input {
          background-position: -85px -130px;
        }
        & + .icon-danxuan {
          color: $primary-color;
          &:before {
            content: '\e75b';
          }
        }
      }

    }
    &.checked {
      .new-input {
        background-position: -85px -130px;
      }
      .icon-danxuan {
        color: $primary-color;
        &:before {
          content: '\e75b';
        }
      }
    }
  }

}
